import * as types from '../mutation-types'

const state = {
    // xxx:null
    userInfo:{},
}

// getters
const getters = {
   
}

// actions
const actions = {
    // getUserInfo({ commit },data) {
    //     commit(types.XXX_XXX,data);
    // },
    updateUserInfo({commit},data){
        commit(types.UPDATE_USERINFO,data)
    },
}


// mutations
const mutations = {
    // [types.XXX_XXX]: (state, data) => {
    //     state.xxx = data;
    // },
    [types.UPDATE_USERINFO]: (state,data) => {
        state.userInfo = data;
    },
}

export default {
    state,
    getters,
    actions,
    mutations
}